<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>

<html>
<head>
    <title>登录页</title>
    <%--echart线图、柱状图、饼图等各种图型库 cdn--%>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
    <%--jquery cdn--%>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
</head>
<body>

<form action="/list.do">

    订单编号 <input name="orderNum" value="${query.orderNum}"><br>
    用户编号 <input name="userNum" value="${query.userNum}"><br>
    币种 <select name="currencyId">
    <option value="">请选择</option>
    <c:forEach items="${currencyList}" var="c">
        <option  ${query.currencyId == c.id ? 'selected':''}   value="${c.id}">${c.name}</option>
    </c:forEach>
</select><br>
     <input type="submit" value="查询"><br>
    <table>
        <tr>
            <td>编号</td>
            <td>订单编号</td>
            <td>用户编号</td>
            <td>币种</td>
            <td>产品类型</td>
            <td>产品ID</td>
            <td>余额</td>
            <td>开始日期</td>
            <td>结束日期</td>
            <td>确认日期</td>
            <td>创建日期</td>
        </tr>
        <c:forEach items="${pageInfo.list}" var="l">
            <tr>
                <td>${l.id}</td>
                <td>${l.orderNum}</td>
                <td>${l.userNum}</td>
                <td>${l.currencyName}</td>
                <td>${l.productTypeName}</td>
                <td>${l.productNum}</td>
                <td>${l.balance}</td>
                <td>${l.startDate}</td>
                <td>${l.endDate}</td>
                <td>${l.confirmDate}</td>
                <td>${l.createTime}</td>
            </tr>
        </c:forEach>

    </table>
    <tr>
        <td><button name="pageNum" value="1">首页</button></td>
        <td><button name="pageNum" value="${pageInfo.prePage}">上页</button></td>
        <td><button name="pageNum" value="${pageInfo.nextPage}">下页</button></td>
        <td><button name="pageNum" value="${pageInfo.pages}">尾页</button></td>
    </tr>
</form>


</body>
</html>